cmake_minimum_required(VERSION 3.31)


# 设置vcpkg的使用（这东西在要最前面）
set(CMAKE_TOOLCHAIN_FILE "C:/vcpkg/scripts/buildsystems/vcpkg.cmake")
# 这个失败了，出现错误：
#CMake Error at C:/Program Files/CMake/share/cmake-3.31/Modules/FindPkgConfig.cmake:138 (set):
#  Syntax error in cmake code at
#    C:/Program Files/CMake/share/cmake-3.31/Modules/FindPkgConfig.cmake:138
#  when parsing string
#    C:\vcpkg\installed\x64-windows\debug/lib
#  Invalid character escape '\v'.

project(Packages)



# 需要cloneGit的项目。
# git clone https://github.com/microsoft/vcpkg.git

# 然后执行vcpkg自身的安装配置
# ./vcpkg/bootstrap-vcpkg.bat

# 使用vcpkg安装raylib
# 它会安装一系列的关连包。
#./vcpkg/vcpkg.exe install raylib

# 有了vcpkg之后，直接使用find_package
find_package(raylib CONFIG REQUIRED)


add_subdirectory(Packages)
add_subdirectory(Main)
